package wifiunion.com.notice.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import wifiunion.com.notice.R;


/**
 * Created by Administrator on 2016/11/23.
 */

public class NoticeUsreListViewHolder extends RecyclerView.ViewHolder {

    public ImageView mNoticeMemberhead1iv;
    public ImageView mNoticeMemberhead2iv;
    public TextView mNoticeMemberNametv;
    public TextView mNoticeMembergerdertv;
    public TextView mNoticeMembermobiletv;
    public TextView mNoticeMemberGrouptv;
    public TextView mNoticeMemberStatetv;




    /**
     * @param itemView
     * @param itemType 0 列表视图
     *                 1 网格视图
     */
    public NoticeUsreListViewHolder(View itemView, int itemType) {
        super(itemView);
        if (itemType == 0) {


            mNoticeMemberhead1iv = (ImageView) itemView.findViewById(R.id.notice_member_list_item_showheader_iv);
            mNoticeMemberhead2iv = (ImageView) itemView.findViewById(R.id.notice_member_list_item_recognitionheader_iv);
            mNoticeMemberNametv = (TextView) itemView.findViewById(R.id.notice_member_list_name_tv);
            mNoticeMembergerdertv = (TextView) itemView.findViewById(R.id.notice_member_list_gerder_tv);
            mNoticeMembermobiletv = (TextView) itemView.findViewById(R.id.notice_member_list_mobile_tv);
            mNoticeMemberGrouptv = (TextView) itemView.findViewById(R.id.notice_member_list_devicegroup_tv);
            mNoticeMemberStatetv = (TextView) itemView.findViewById(R.id.notice_member_list_state_tv);

        }
    }


    public NoticeUsreListViewHolder(View itemView) {
        super(itemView);

    }

    @Deprecated
    public final int getIPosition() {
        return getPosition() - 2;
    }

    public final int getILayoutPosition() {
        return getLayoutPosition() - 2;
    }

    public final int getIAdapterPosition() {
        return getAdapterPosition() - 2;
    }

    public final int getIOldPosition() {
        return getOldPosition() - 2;
    }

    public final long getIItemId() {
        return getItemId();
    }

    public final int getIItemViewType() {
        return getItemViewType();
    }
}
